package main

type People interface {
	Speak(string) string
}

type Student struct {
}

func (stu *Student) Speak(think string) (talk string) {
	if think == "bitch" {
		talk = "You are a good boy"
	} else {
		talk = "hi"
	}
	return
}

func main() {
	//var peo People = Student{} //因为(stu *Student) 是指针才能调用的, 如果不想报错, 要么参数改为(stu Student), 要么当前位置改为 &Student{}
	//think := "bitch"
	//fmt.Println(peo.Speak(think))
}
